def dofor1(name):
    for leg in name:
        print(leg)


def dofor2(name):
    for i in name:
        for j in i:
            print(j)


if __name__ == '__main__':
    # dofor1('dotest')
    names=['123','456','789','987','654']
    dofor2(names)
    pass
